home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group97a.txt
/
000102_icon-group-sender _Mon Apr 7 12:28:36 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
1KB
Received: by cheltenham.cs.arizona.edu; Tue, 8 Apr 1997 13:31:19 MST
Sender: ko@surya.ho.att.com
Message-Id: <334920B4.59CE@surya.ho.att.com>
Date: Mon, 07 Apr 1997 12:28:36 -0400
From: Kostas Oikonomou <ko@surya.ho.att.com>
Organization: AT&T Bell Labs
X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5.1 sun4c)
Mime-Version: 1.0
To: icon-group@cs.arizona.edu
Subject: Problem with Icon 9.3
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Content-Length: 613
Hi,
I have the following simple (I think) program:
link ximage
procedure main()
# The state diagram.
sd := table([])
sd[["q0","ok"]] := "q1"
sd[["q0","nok"]] := "q0"
sd[["q1","nok"]] := "q0"
sd[["q1","ok"]] := "q2"
# q2 is the final state
every x := key(sd) do write(ximage(x), ":", sd[x])
end
This doesn't behave as I think it should. The problem seems to be a
table whose keys are lists. Is there something wrong with this kind of
structure? I don't see anything to that effect in the 3d edition of the
Icon book, Ch. 6 on tables.
I'd appreciate your help.
--
Kostas Oikonomou